﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" Inherits="poll_ListPoll_CS" Title="ClientSideAsp : Asp.Net AJAX Poll with JQuery - List Polls" Codebehind="ListPoll_CS.aspx.cs" %>

<%@ Register Src="PollMenu.ascx" TagName="PollMenu" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<!--
Programmed by Anz on www.ClientSideAsp.net 
-->
    <h3>
        Poll Listing</h3>
    <uc1:PollMenu ID="PollMenu1" runat="server" />
    <br />
    <div runat="server" id="divMsg" class="mInfo" visible="false">
    </div>
    <asp:GridView ID="gvPolls" runat="server" Width="100%" GridLines="None" DataKeyNames="PollID"
        OnRowDeleting="gvPolls_RowDeleting" CssClass="grid">
        <HeaderStyle CssClass="gridHead" />
        <Columns>
            <asp:HyperLinkField DataNavigateUrlFields="PollID" DataNavigateUrlFormatString="~/poll/AddPoll_CS.aspx?pid={0}"
                Text="Edit" />
            <asp:TemplateField ShowHeader="False">
                <ItemTemplate>
                    <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="false" CommandName="Delete"
                        Text="Delete" OnClientClick="return confirm('Are you sure you want to delete this poll?')" />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:HyperLinkField DataNavigateUrlFields="PollID" DataNavigateUrlFormatString="~/poll/Poll_CS.aspx?pid={0}"
                Text="Try"  />
        </Columns>
    </asp:GridView>
</asp:Content>
